import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/wfModel',
    method: 'get',
    params,
  })
}

export function doAdd(data) {
  return request({
    url: '/wfModel',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/wfModel',
    method: 'put',
    data,
  })
}

export function doDelete(id) {
  return request({
    url: '/wfModel/' + id,
    method: 'delete',
  })
}

export function doPublish(data) {
  return request({
    url: '/wfModel/publish',
    method: 'put',
    data,
  })
}

export function doSuspendOrActivate(data) {
  return request({
    url: '/wfModel/suspendOrActivate',
    method: 'put',
    data,
  })
}
